<template>
  <router-view>

    <div class="not-found-container">
      <div class="content">
        <h1>404</h1>
        <h2>页面未找到</h2>
        <p>您访问的页面不存在，可能已被删除或移动。</p>
        <el-button type="primary" @click="goHome">返回首页</el-button>
      </div>
    </div>
  </router-view>
</template>

<script>
export default {
  methods: {
    goHome() {
      this.$router.push('/'); // 返回首页
    }
  }
};
</script>

<style scoped>
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f7fa;
  text-align: center;
}

.content h1 {
  font-size: 8rem;
  color: #409eff;
  margin-bottom: 10px;
}

.content h2 {
  font-size: 2rem;
  color: #606266;
  margin-bottom: 20px;
}

.content p {
  font-size: 1rem;
  color: #909399;
  margin-bottom: 30px;
}

.el-button {
  padding: 12px 30px;
  font-size: 1rem;
}
</style>



